#include <string.h>
#include <stdio.h>
 #include <stdlib.h>
int main () 
{
   char str[80] = "0x01234567";
	int a;
	memcpy(str, str+2, sizeof(str)-2);
	printf("source string is %s",str);
	a = atoi(str);
	printf("a is %d", a);
   
   return(0);
}
